define(function (require, exports, module) {
    app = require('../singlepage/main');
    require('../contract/contract-ctrl');
    app.config(['$routeProvider',
        function ($routeProvider) {
            $routeProvider
                .when("/", {
                    template: '<div><h2>Route</h2></div>', 
                })
                .when('/contract', {
                    templateUrl: 'contract/list.html',
                    controller: 'contractListCtrl',
                    resolve: { 'test': function () { return { name: '333334444' } } }
                })
                .when('/authorize', {
                    templateUrl: 'authorize/list.html'
                })
                .otherwise({ redirectTo: '/home' });

        }]);

});
